home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / SnoozeAlarm / BetterBitStream.h < prev    next >
Text File  |  2000-06-23  |  1KB  |  35 lines

  1. /****************************************************************************************
  2.     BetterBitStream.h
  3.     
  4.     Copyright © 1999 Red Shed Software. All rights reserved.
  5.     by Jonathan 'Wolf' Rentzsch (jon@redshed.net)
  6.     
  7.     Commenter    Date                Comment
  8.     ---------    -----------------    -----------------------------------------------------
  9.     wolf        Thu, Mar 18, 1999    Created.
  10.     
  11.     ************************************************************************************/
  12.  
  13. #ifndef        _BetterBitStream_
  14. #define        _BetterBitStream_
  15.  
  16.     extern
  17.     void
  18. InsertBetterBitStream(
  19.     void    **bitStream,    //    ->    A pointer to a pointer to a buffer.
  20.                             //    <-    Incremented with each filled byte.
  21.     UInt32    *bitPosition,    //    ->    Where to put the bit.
  22.                             //    <-    Incremented.
  23.     UInt8    bit );            //    ->    What value to insert.
  24.  
  25.  
  26.     extern
  27.     UInt8                    //    <-    The retrieved bit.
  28. GetBetterBitStream(
  29.     void    **bitStream,    //    ->    A pointer to a pointer to a buffer.
  30.                             //    <-    When a byte is emptied, the pointer is
  31.                             //        automatically incremented.
  32.     UInt32    *bitPosition );    //    ->    Current position in the buffer.
  33.                             //    <-    Automatically incremented.
  34.  
  35. #endif    //    _BetterBitStream_